const express = require('express');

// Constants
const PORT = 8080;
// 动态设置 HOST：优先使用环境变量
const HOST = process.env.HOST || '0.0.0.0';

// App
const app = express();
app.get('/', (req, res) => {
  res.send('Hello, Docker World! This is our first image.');
});

app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);